<?php
//电子门票后台路由
$router->group(['prefix' => 'eticket','namespace' => 'Eticket'],function ($router)
{
    $router->group(['prefix' => 'activity'],function ($router)
    {
        $router->get('ajaxIndex','ActivityController@ajaxIndex');
        $router->get('{id}/writeOff','ActivityController@writeOff');
        $router->get('{id}/getWriteOffUsers','ActivityController@getWriteOffUsers');
        $router->post('{id}/updateWriteOffMax','ActivityController@updateWriteOffMax');
        $router->get('{id}/destroyWriteOffUser/{openid}','ActivityController@destroyWriteOffUser');
        $router->get('{id}/draw','ActivityController@draw');

    });
    $router->resource('activity','ActivityController');

    $router->group([],function ($router)
    {
        $router->get('{id}/ticket','TicketController@index');
        $router->get('{id}/ticket/stat/{way}','TicketController@stat');
        $router->get('{id}/ticket/all','TicketController@all');
        $router->post('{id}/ticket/batchStore/{way}','TicketController@batchStore');
        $router->post('{id}/ticket/ajaxSetting/{way}','TicketController@ajaxSetting');
        $router->get('{id}/ticket/ajaxList','TicketController@ajaxList');

        $router->get('{id}/getTickets','TicketController@getTickets');
        $router->get('{id}/ticket-list','TicketController@ticketList');
        $router->get('{id}/ajax-ticket-list','TicketController@ajaxTicketList');
    });
    $router->resource('ticket','TicketController');

});

$router->group(['prefix' => 'prize'],function ($router)
{
    $router->get('ajaxIndex','PrizeController@ajaxIndex');
    $router->post('batchStore','PrizeController@batchStore');
    $router->post('ajaxSetting','PrizeController@ajaxSetting');
    $router->get('all','PrizeController@all');
    $router->get('ajaxList','PrizeController@ajaxList');

});
$router->resource('prize','PrizeController');
